package com.wkq.service.impl;

import com.wkq.dao.ILogDao;
import com.wkq.domain.SysLog;
import com.wkq.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ILogServiceImpl implements ILogService {

    @Autowired
    private ILogDao iLogDao;

    @Override
    public List<SysLog> findAll() {
        List<SysLog> logList = iLogDao.findAll();
        return logList;
    }

    @Override
    public void saveLog(SysLog sysLog) {
        iLogDao.saveLog(sysLog);
    }
}
